﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using THE_WIND_RISES.Common.Dtos;

namespace THE_WIND_RISES.Common.Domans.Produce.Resources
{
    /// <summary>
    /// 资源管理
    /// </summary>
    public class Resource: Entity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int ResourceId { get; set; }

        /// <summary>
        /// 资源编码
        /// </summary>
        public string ResourceNo { get; set; }

        /// <summary>
        /// 资源名称
        /// </summary>
        public string ResourceName { get; set; }

        /// <summary>
        /// 资源类别
        /// </summary>
        public int ResourceTypeId { get; set; }

        /// <summary>
        /// 资源描述
        /// </summary>
        public string ResourceDescription { get; set; }

        /// <summary>
        /// 资源单位
        /// </summary>
        public string ResourceUnit { get; set; }

        /// <summary>
        /// 计算成本
        /// </summary>
        public string ResourceCost { get; set; }

        /// <summary>
        /// 费用类型
        /// </summary>
        public int ExpensesId { get; set; }

        /// <summary>
        /// 计算方式
        /// </summary>
        public string ResourceCalculation { get; set; }

        /// <summary>
        /// 基准类型
        /// </summary>
        public int BenchmarkId { get; set; }

        /// <summary>
        /// 单位成本
        /// </summary>
        public int ResourcePrice { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool ResourceState { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int ApprovalStatus { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
